package com.itheima.Mapper;


@Mapper
public interface UserMapper {

    @insert("insert into user(name,username,gender,age,address) values(#{name},#{username},#{gender},#{age},#{address})")
    void insertUser(User user);

    @select("select * from user where id=#{id}")
    User queryById(int id);

    @update(update  from user set username=#{username} where id=#{id})
    void updateById(User user);

    @delete("delete from user where id=#{id}")
    void deleteById(int id);

}
